package com.health.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 医院表
 * </p>
 *
 * @author sanchuan
 * @since 2023-04-16
 */
@Getter
@Setter
@TableName("hospital")
@ApiModel(value = "Hospital对象", description = "医院表")
public class Hospital implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("序号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("医院名称")
    private String name;

    @ApiModelProperty("医院头像")
        private String avatar;

    @ApiModelProperty("医院地址")
    private String address;

    @ApiModelProperty("医院类型 0 综合医院 1 私立医院 2 公立医院")
    private Integer type;

    @ApiModelProperty("医院等级 0 三甲  1 三乙 2 二甲 3 二乙")
    private Integer level;

    @ApiModelProperty("医院简介")
    private String info;
    @ApiModelProperty("医院拥有的科室")
    private String consultingRoom;
    @ApiModelProperty("医院拥有的服务标签")
    private String serviceTag;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("逻辑删除")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty("是否上架")
    private Boolean isShelves;

    @ApiModelProperty("排序")
    private Integer sort;
}
